<%--
  Created by IntelliJ IDEA.
  User: xiaopang
  Date: 2020/9/24
  Time: 0:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="commons/header.jsp"%>

<style>
    .modal-dialog {
        width: 680px;
    }

    .pagination {
        margin-top: 0;
        margin-bottom: 0;
    }
</style>
<div style="background-color: #ffffff; border-radius: 3px; padding: 12px;">
    <table id="dataTable" class="table table-hover table-bordered"></table>
</div>
<%@ include file="commons/footer.jsp"%>

<script>
    $('#dataTable').bootstrapTable({
        url: '${pageContext.servletContext.contextPath}/sys_user',
        method: 'get',
        columns: [
            {title: 'ID', field:'id',align:'center'},
            {title: '账号', field: 'username',align: 'center'},
            {title: '密码', field: 'password',align: 'center'}
        ]
    })
</script>
